package name.hankc.spring;

import name.hankc.spring.bean.PersonX;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class ComponentConstructorApplication {

  public static void main(String[] args) throws Exception {
    ApplicationContext ctx = new AnnotationConfigApplicationContext(ComponentConstructorConfiguration.class);
    PersonX personx = ctx.getBean(PersonX.class);
    System.out.println(personx);
  }
}